package com.jcloudsoft.springbootshardingsphere.modify.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * @author wangfei
 * @date 2022-02-22 8:44
 */
@Data
@TableName("person_info")
public class PersonInfo {
    @TableId(value = "id",type = IdType.ID_WORKER)
    public Long id;
    public String name;
    @FiledNameAnnotation(value = "手机")
    public String phone;
    public Integer age;
    @FiledNameAnnotation(value = "入职时间")
    public Date entryTime;

    @TableField(exist = false)
    public Date birthDay;
    @TableField(exist = false)
    public String address;
    @TableField(exist = false)
    @FiledNameAnnotation(value = "人员特征")
    public List<PersonItem> personItemList;

    public String inputUser;
    public Date inputTime;

}
